/* 文章详情页整体样式 */
.art-article-detail-page {
    background-color: #F5F0EB;
    background-image: url("data:image/svg+xml,%3Csvg width='52' height='26' viewBox='0 0 52 26' xmlns='http://www.w3.org/2000/svg'%3E%3Cg fill='none' fill-rule='evenodd'%3E%3Cg fill='%238d6e63' fill-opacity='0.05'%3E%3Cpath d='M10 10c0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6h2c0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4 3.314 0 6 2.686 6 6 0 2.21 1.79 4 4 4v2c-3.314 0-6-2.686-6-6 0-2.21-1.79-4-4-4-3.314 0-6-2.686-6-6zm25.464-1.95l8.486 8.486-1.414 1.414-8.486-8.486 1.414-1.414z' /%3E%3C/g%3E%3C/g%3E%3C/svg%3E");
    color: #333;
    font-family: 'PingFang SC', 'Helvetica Neue', Arial, sans-serif;
    height: 100vh;
    overflow-y: auto;
}

/* 顶部导航 */
.art-article-header {
    position: sticky;
    top: 0;
    z-index: 100;
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 12px 16px;
    background-color: rgba(245, 240, 235, 0.95);
    backdrop-filter: blur(5px);
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    transition: box-shadow 0.3s ease;
}

.art-article-header.scrolled {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.art-back-btn {
    color: #8B5A2B;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    background-color: rgba(139, 69, 19, 0.2);
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.art-back-btn:hover {
    background-color: rgba(139, 69, 19, 0.3);
    transform: translateX(-2px);
}

.art-article-actions {
    display: flex;
    gap: 8px;
}

.art-action-btn {
    color: #8B5A2B;
    width: 40px;
    height: 40px;
    border-radius: 50%;
    display: flex;
    align-items: center;
    justify-content: center;
    padding: 0;
    background-color: rgba(139, 69, 19, 0.2);
    border: none;
    cursor: pointer;
    transition: all 0.2s ease;
}

.art-action-btn:hover {
    background-color: rgba(139, 69, 19, 0.3);
    transform: scale(1.05);
}

/* 文章内容容器 */
.art-article-content {
    max-width: 800px;
    margin: 0 auto;
    padding: 16px;
}

/* 文章标题 */
.art-article-title {
    font-size: clamp(1.5rem, 5vw, 2rem);
    font-weight: 600;
    line-height: 1.4;
    margin: 0 0 16px 0;
    color: #5d4037;
}

/* 文章元数据 */
.art-article-meta {
    display: flex;
    justify-content: space-between;
    align-items: center;
    margin-bottom: 16px;
    flex-wrap: wrap;
    gap: 8px;
}

.art-article-category {
    background-color: rgba(139, 69, 19, 0.1);
    color: #8b4513;
    border: none;
    font-size: 12px;
    padding: 3px 10px;
    border-radius: 12px;
    cursor: pointer;
    transition: background-color 0.2s ease;
}

.art-article-category:hover {
    background-color: rgba(139, 69, 19, 0.2);
}

.art-meta-info {
    display: flex;
    gap: 12px;
    font-size: 12px;
    color: #999;
}

.art-meta-item {
    display: flex;
    align-items: center;
    gap: 4px;
}

/* 文章封面图 */
.art-article-cover {
    width: 100%;
    border-radius: 12px;
    overflow: hidden;
    margin-bottom: 24px;
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
}

.art-cover-img {
    width: 100%;
    height: auto;
    object-fit: cover;
    transition: transform 0.3s ease;
}

.art-article-cover:hover .art-cover-img {
    transform: scale(1.01);
}

/* 文章正文样式 */
.art-article-body {
    font-size: 16px;
    line-height: 1.8;
    color: #333;
    margin-bottom: 32px;
}

.art-article-body p {
    margin: 0 0 16px 0;
}

.art-article-body h3 {
    font-size: 18px;
    font-weight: 600;
    margin: 24px 0 16px 0;
    color: #5d4037;
    padding-left: 8px;
    border-left: 3px solid #8b4513;
}

.art-article-body strong {
    color: #8b4513;
}

/* 工具栏样式 - 优化布局 */
.art-article-toolbar {
    display: flex;
    justify-content: space-around; /* 改为平均分布 */
    align-items: center;
    padding: 10px 0;
    margin: 15px 0 25px;
    width: 100%;
    border-top: 1px solid #eee;
    border-bottom: 1px solid #eee;
    background-color: rgba(243, 243, 243, 0.49);
    border-radius: 10px;
    box-shadow: 0 2px 5px rgba(0,0,0,0.03);
}

/* 工具栏按钮样式 - 优化布局 */
.art-toolbar-btn {
    display: flex;
    align-items: center;
    color: #666;
    font-size: 14px;
    cursor: pointer;
    padding: 8px 0;
    flex: 1;
    justify-content: center;
    transition: all 0.2s ease;
    
    border-radius: 6px;
    min-width: 70px;
    gap: 6px; /* 图标和文字之间的间距 */
}

/* 按钮分隔线 */
.art-toolbar-btn:not(:last-child) {
    position: relative;
}

.art-toolbar-btn:not(:last-child)::after {
    content: '';
    position: absolute;
    right: 0;
    top: 20%;
    height: 60%;
    width: 1px;
    background-color: #eee;
}

.art-toolbar-btn:hover {
    background-color: rgba(139, 69, 19, 0.05);
    transform: translateY(-2px);
}

/* 激活状态样式优化 */
.art-toolbar-btn.active {
    color: #8b4513;
    font-weight: 500;
}

/* 图标样式优化 */
.tool-icon {
    font-size: 18px;
    width: 22px;
    height: 22px;
    display: flex;
    align-items: center;
    justify-content: center;
}

/* 文字和数字样式优化 - 水平排列 */
.tool-text {
    display: flex;
    align-items: center;
    gap: 2px; /* 文字和数字之间的间距 */
}
.tool-title{
    min-width: 30px;
}

/* 计数数字样式优化 */
.tool-count {
    font-size: 14px;
    color: #8b4513;
    font-weight: 500;
    min-width: 20px;
    text-align: center;
}

/* 相关推荐 */
.art-related-articles {
    padding: 0 16px 16px;
    max-width: 800px;
    margin: 0 auto;
}

.art-related-title {
    font-size: 18px;
    font-weight: 600;
    color: #5d4037;
    margin: 0 0 16px 0;
    position: relative;
    padding-left: 8px;
}

.art-related-title::before {
    content: '';
    position: absolute;
    left: 0;
    top: 50%;
    transform: translateY(-50%);
    width: 3px;
    height: 16px;
    background-color: #8b4513;
    border-radius: 3px;
}

.art-related-list {
    display: flex;
    flex-direction: column;
    gap: 12px;
}

.art-related-article {
    border-radius: 12px;
    overflow: hidden;
    background-color: #fff;
    box-shadow: 0 2px 8px rgba(0, 0, 0, 0.05);
    cursor: pointer;
    transition: all 0.2s ease;
}

.art-related-article:hover {
    box-shadow: 0 4px 12px rgba(0, 0, 0, 0.08);
    transform: translateY(-3px);
}

.art-related-content {
    display: flex;
    padding: 12px;
    gap: 12px;
}

.art-related-img {
    width: 100px;
    height: 100px;
    border-radius: 8px;
    object-fit: cover;
    flex-shrink: 0;
    transition: transform 0.3s ease;
}

.art-related-article:hover .art-related-img {
    transform: scale(1.05);
}

.art-related-info {
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: space-between;
}

.art-related-article-title {
    font-size: 15px;
    font-weight: 600;
    color: #333;
    margin: 0 0 8px 0;
    line-height: 1.4;
    display: -webkit-box;
    -webkit-line-clamp: 2;
    -webkit-box-orient: vertical;
    overflow: hidden;
    transition: color 0.2s ease;
}

.art-related-article:hover .art-related-article-title {
    color: #8b4513;
}

.art-related-meta {
    display: flex;
    justify-content: space-between;
    font-size: 12px;
    color: #999;
}

/* 加载状态 */
.art-article-loading {
    padding: 16px;
}

.art-loading-placeholder {
    background-color: #e0d8d0;
    border-radius: 8px;
    margin-bottom: 12px;
    animation: art-pulse 1.5s infinite;
}

.art-cover-placeholder {
    height: 200px;
}

.art-title-placeholder {
    height: 30px;
    width: 70%;
}

.art-meta-placeholder {
    height: 20px;
    width: 50%;
}

.art-content-placeholder {
    height: 20px;
    width: 100%;
}

/* 错误状态 */
.art-article-error {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    height: 300px;
    gap: 16px;
    color: #666;
}

/* 动画 */
@keyframes art-pulse {
    0% {
        opacity: 0.6;
    }

    50% {
        opacity: 0.3;
    }

    100% {
        opacity: 0.6;
    }
}

/* 响应式调整 */
@media (max-width: 360px) {
    .art-toolbar-btn {
        font-size: 12px;
        padding: 6px 0px;
        min-width: auto;
    }
    
    .tool-icon {
        font-size: 16px;
    }
    
    .tool-count {
        font-size: 12px;
    }
}

@media (min-width: 1024px) {
    .art-article-content {
        padding: 24px;
    }
    
    .art-article-title {
        font-size: 26px;
    }
    
    .art-article-body {
        font-size: 17px;
    }
}
